fixed bug for showing boxes