bugfix, now working