Bug fixes Main, Design and Paint activities