fixed undefined messaged in comments