Fix runtime panic due to checking wrong value :-(