fixed a bug in staging