Fixed stamina-related bugs