fixed pesky bug