Bug fix | if access type is switched exception would always be thrown