fixed issue #6. changed null values to -1