fixed release compile error
minor tidy