viewcontroller bugfix