work around null pointer error