bug fixes for refresh control