Fixed psm compilation.
Fixed some psm stuff.