Fixed errors to compile on mobile