bug fixing

successive calling of ctime function bug is fixed.
color ambiguity problem is fixed.