hopefully fixed #42 overlay class cast exception on jolla phones