fix horrible bug