Fix wrong parameter passed and make things easier to read.