fixes #1 solved by Vladimir