fix inncorrect gradient size