Stop event from firing twice. Make code work with em units.