fixed that stupid bug thanks to zane