fixing cursor close error, for realz this time

:)