Fixed some bugs in Poca