Trivial fixes.

Fixes for  https://github.com/poweradmin/poweradmin/issues/134 and https://github.com/poweradmin/poweradmin/issues/135