Fixed deprecated methods (#347)