fixed 5.1 bug