Fixes error that occurs when passing constant for the callback