Fixed refresh bug on end scene