Fixes cancel button jQuery