Bugfix (thanks to Matevz for finding it)