Solved bug in density method.