Fix for incorrect Switch target/selector  handling on the devices with armv64 architecture

This pull request fixes possible crashes on the armv64 devices