Solved the "typeof"-error