Fixed bugs in barscene