fixed bug in cupboards controller