Resetting values before animation