Bug Fix: was calling a function that wasn't there