fixed bug in listing controller