fix to ignore empty bins