fixed panic bug, silly me