Fixed bug in active method.