"no method" exception fix