fixed horrible bug. Sad times