Fixed bug, now raising exception