Fixed faulty code ;)

closes #450