Fixed issue with setScene function