fixed bugs in design