fixed bug in staging