Fixed code to warnings when compiling with ASC2