fix NullPointerException on refocus on API 8. Close #21