Fixes error being thrown from old fretta function