Fix for Firefox transition issue