Fixed small bug, unfortunately unrelated to current problem..