fixed a few errors in Method and JasminXT