fix problem with waiting curson (Fixes #82)