Fixed possible error when building