Fixed some errors, parameters bad order