Fixed strange frame behaviour.