bug fixes for sureal