to make getcursorbmp execute ok