Fix for bin check