Fix for maximum hours