Fixed creating static elements with correct path. Close #2.