Fixed a bug, now it works.