fixes error when compile with scala 2.10: value contains is not a member of Option[String]