Removed excess static mains. Fixed #9