Fixed undeclared static property error

thanks for the bug report, Jaska.