bugfix for view controller