fixed a bug that was crashin early