fixed bug in debug...lol