opening after error issue fixed