Fixed bug created by @petterroea