Fix bug due to json_encode filter usage