fixed store access error nil check