Modified to not send invalid geometry to app