Fix bug passing format