Solved some issues in spatiotemporal selection; clean up