Fixing an exception that occurs in sticky headers every once in a while