Fixed some random error due to non-existent functions
Random fixes