Fixed declarations of devicesemas