Fix for Adam