Fix for mac/FF