fixed to work with bb10 simulator