fixed a bug with the phoenix