fixed warnings in OpenClass class