fixed sanitising function call check