Fixed open handle bugs #2