Fixed some errors given by NetBeans Parser