fix upper limit for loss graphs