Fixing default bin function