Fixed constraints after adding ratings