partial fixes for offscreen collision detection (introduces memory issues)