Fixed write access check